#:kivy 1.0

# Popup widget
#:set padding_v 12

<SimplePopup>:
    _container: container
    canvas:
        Clear
        Color:
            rgba: 0, 0, 0, self._anim_alpha * .7
        Rectangle:
            size: self._window.size if self._window else (0, 0)


        Color:
            rgba: root._border_color
        Rectangle:
            pos:self.pos
            size: self.size
        Color:
            rgba: root._background_color
        Rectangle:
            pos: (self.x+self._border_size,self.y+self._border_size)
            size: (self.width-2*self._border_size, self.height-2*self._border_size)



    BoxLayout:
        size_hint: None, None
        pos: (root.x+ root._border_size, root.y + root._border_size)
        size: (root.width- 2*root._border_size, root.height - 2*root._border_size)
        id: container
        orientation: 'vertical'
